Bug 975641 Add debounce helper