Updated IDF calculation.