Output fix.
Parallelized code for model level 2 and 3.