Replacing debounce counter for timeout function
Merge branch 'master' of github.com:KoenPasman/SimpleStateManager into 1.0.2