Added the ability to define attributes.