Adds documentation for validation.