Added suppressWarnings to min/max