Added convergence check