Move dirty code into ATTR.