Added the setAttributes