Added a new handler to dump term frequencies