Add part of zookeeper watcher code.