Implemented simple alarms.