Added TD-IDF table building.