Circular dependency detection.