Add globalMax support