Adding processing for alerts.