min_sum is now passed to the z stage thread