added some debounce timing stuff.