Extracted parsing out to a separate file.