First draft of the file parser.