need to tell from if thread has completed (not just alive or not)
need to check the calculation of average and max duration at the beginning
need to find a better way to organize the threads.