This doesn't appear to be used here... Perhaps it should be, to ensure files are temporary from the beginning?