Add support for adding attributes.