It was fairly easy to do (and I am NOT a programer!) I just added enough code to the G31 section to map the position data to the variables 2000-200x. Then I just use the a modified Mach post to generate the gcode.

Matter of fact in the original leveling software, linuxcnc and mach shared the same post.