Finished file parsing. Warning, naughty hax ahead.