Change alarms logic