Starting and stopping alarm manager is done