Change to parser to account for input files having both keys and node
representation after the first iteration