Added battery checker