Added clearAttrs method to S