Replacing debounce counter for timeout function