Warning: predictable filenames can cause problems when somebody is linking the file - maybe use a tmpfile instead