Fixed calculation for weights, so routes make more sense now.