Move heartbeat length to a variable