Did I understand this right: you create a temporary file and then remove it only to get a unique filename?