I'm pretty sure this is max distance between outputs, now I just need to optimize the cost.