Update master_thread.cc