Added support for watching dependencies.