Added schema validation.