implemented alarms and notifications.