When my multithreaded script works perfectly