Thanks for the quick reply, i will try it tonight. If i want to run a larger script (thinking of implementing something like your example on ess probing with safeguards, but i will write it for z,y,x corner for setting work origin would it work the same way or maybe put it in a module? I'm still trying to get the big picture of how mach4 works internally.