Added battery management + sleep for hours