Add a min and max value for weight.