Added support for dependencies.