Enhanced simulator to take argument indicating number of simulations