New implementation of replication heartbeat

New implementation of replication heartbeat