Set interval for heartbeat