Simplifying the traversal process for circular dependencies and first working test!