Added option to specify multiple iterations to be run in sequence.