Changed ParseResult to a static function