Cleanup of parser.