Added support for max and min methods
Added support for max and min methods