Solving parfor loop problems.