Now the performance script stops when all the threads are over instead of when the timer is finished