Uses temp files instead of writing files into the current directory. I think it still works.