Cleanup and attrib