Added another way to min/max