max and min support for multiple parameters.