Adding single_threaded option