Alerts update

Made alerts persistent as well as added time stamp.