Refactored matching. Matches by sentence.