CS and rename $currentMatched to $matches