Add a convergence check