Added a heartbeat system