Add Perplexity calculation