Best way to avoid duplicate runs

Got it, it would certainly take some time to get up to speed on Webcore, though it is not a language, it is just another app you need to learn how to use, just like RM.

You would be amazed, though, how much simpler this would likely be, and easier to read back, if this was put in Webcore. Complex calculations are easier in Webcore with expressions, and conditionals are very straight forward and clear. Each piston has local variables, which could be used for your counter. If you are ever bored, you might want to look into it.