Implemented maxProperties and minProperties.