Ability to define number of threads in demo