Update min and max values.