Implemented structured validation.