Added debouncing; closed #2