Final work for alerts