Added hardware-access to heartbeat state machine.