Added debouncing circuits for switches