Add method to run for number of iterations specified in config