Improved performance by running simulation in multiple threads