Improvements to the parallel code.