Modified to handle gcode generated by Makerware