Added manual XYZ flip