Change max_thread to num_thread