Fixes multiple gcode selection, layer mapping and tool length