Changed so that only each 1M reads get written to file