Used min/max also as infimum and supremum.