Added MAX and MIN settings