Added min, max methods.