Added command line flag to specify how many iterations the producer should run