Added SetDebounceTime function