Next attempt, making nUniqueKeys = nKinds