Add debounce method