Remove temporary material.
Remove temp file.
Put correct file in default directory.