Update for new way of hooking into the gcode