Completed first draft of parser.