That is good and simple, but does it debounce the switch.