Corrected Pareto front function.