Implemented reading of battery capacity.