Changed the alert contract. Added a heartbeat alert handler.