Working on alarm loop