Added method to remove attributes.