Fixed multithreading