Move to std::thread