Update for legacy reasons. Please consider using C++ threads.