Switched to std thread