Added multithread