Add maxDelay option for debounce feature.