Added protocol support (for x3g vs gcode)