Added proper convergence criteria for rotation phase