Add num_processes option