Add support for hierarchical dependencies.