Add maxMatches setting