Changed from theading to multiprocessing. Fixed some weird bugs.