Added folding along x and z axis