Fixed all of the thread creation problems (still not for the speed benchmarking though)