Added iteration limit criterion.