In runOnce, added document and term frequency