Added functionality to create a set of the words seen on a node.