Renamed displayAlert() to addAlert()