Umproved debouncer class