Resolving cyclic dependencies