added command line arguments to control the number of runs