Added detection for circular dependencies between components.