added ability to select number of runs