Updated alert functions