Replace most of parallel_for with parallel_for_