Fixed threads stuff
Fixed threads stuff