Added Cauchy type convergence check.