Implemented maxItems and minItems.