Removed duplicate command, properly handle case where no battery are
present