Use a ticker for the heartbeat.