Implemented convergence check