Rename function and remove n_threads argument