Added heartbeat process to sockets