Refactored the parallel merging run