Added both pmi calculation methods