Add support for min and max in qualities.