Use debounce for event listener