Multithreading fixed