write to file every 20 words or so, or to say every cycle.