Document debounce method.