calc_perplexity now works.