Recursion detection.