Now writes 1000 contexts per file