Added omp parallel to parallelize simulation for-loop.