I opened the post on my machine and it looked like this:
dist = 9999999
refdistance = 99999* scale
--Put your switch offset value here
lastz = 0
This is also where you set the switchoffset(from earlier post) for your cut height. Change the .052 number to correspond to your needs.