Added CloneAttributes method