Add snippet for alert