MinMax working.