Add support for chained dependencies