Minor changes on API for range selection and max.