Added support for alerts.