Sending heartbeats and doing a health check