Added support for a custom payload in the send_heartbeats function.