Updated for max and min on components.