Update the way path lengths are computed.