Add the heartbeat server implementation.