Made alerts work