Added OnAlarmEvent