Added changes to start scheduled tasks if running on batteries.