update
Added debounce support