Add a re-attr function.