Implement attr overloads and removeAttr.