Remove pseudo-async function for alerts