Add support for required attributes.