Detects events and sends notifications.