First attempt at debouncing events.