First try on both max and min