Changed Max_threads