Cycle detection: working.