Perplexity classification now working for n > 2.