Created getNodeData sub for adding columns to hash