Improve Auto advance Switch Function

It is working. Starts and stops the trolly. Not sure why I have to set
the N>2 to get the trolly to advance.