Working on debugging message sending.
Merged and added in another null check for sending a heartbeat message.