Move heartbeat to component class.