Added code to remove temp files