Updated Temp file deletion.