Separated the processing of single and parallel loops.