Added method for alert