Suggest using `mktemp` for the creation of temporary files, but I'm not fussy about it in this case.