Finishes work, renames file. NEEDS CLEANING