Adds transitive dependencies.