Implemented Heartbeat listener class