Convert to a data structure for nodes, that will be useful later