Made number of actors a parameter to achieve safety of running benchmark.