Got rid of all the bugs plaguing the threading support. Threading support should now work fine