Making use of Zookeeper API