Fixed: doesn't create the pickled file on each iteration.