Rename and gen gcode