Added rounding of weight.