Added support for target dependencies.