Removed unused readCharge() function