Replacing maximum number of iterations with cycle detection