Implemented basic heartbeat