Use std::thread instead of boost::thread. Still need to debug..crash at beginning