added Alarms code