Fixed[?] a bug in the battery function on machines with no battery...