I think finished parsing. Actually a lot simplier than I expected.