Added the ability to provide the class's element name through an attribute.