Uncommented battery code.