Implement sending heartbeat