Improving Battery Performance by Using Traffic Shaping Techniques