Add checking the convergence condition