Added debounce of switch on transition.
Added delay after the the initial setup