Modifying Pareto proportional code to handle shared underlyings