Add support for Math.max and Math.min