Add looping feature to generate many sets of data at once.