Catching cyclic dependencies