Backing up min/maxOccurs code.