Uses a debounce instead of timeout

Closes #190.