Add support for validation.