Debounce instead of throttle

Replace the throttle logic with a configurable debounce logic.
Fixes issue #9.