Add names to nodes.