Added temp file cleanup.