Multithread work.