Add convergence check and warning.