Added iteration stop condition (convergence)