Add initial version of the state watcher in dependency manager.