Sync with gcode