Added battery monitoring.