Update g-code preprocessing