Added numIterations as a command line argument.