Added functions for reducing document frequencies on the master.