Wrote majority of the remaining parser.