Handle multithread