Finished max-sum part