Migrated to parallel_invoke.