Added the type attribute.