Record the min and the max values for visualization as well.