Updating button debounce routine