I'm not goingto try to understand that code, it's easier just to ask you: Does that just bring the tool down slowly until it touches?

If so I could add a layer of slightly flexible material to the back of the plate (I'm just not comfortable with driving the tool into a solid surface).