Replaced bool with MatchingResult.