Alarms

Added support for alarms.