Update weight calculation.