Added configurable heartbeat_interval