Remove temp files.
Rename some files.