Extracted HeartbeatMonitor - not finished yet