Finished implementing charger functions