It now fails gracefully if no battery is present