Working version before adding new debounce

Just in case :)