complated template application
Added Battery Manager
Added Time parameter