Move creation of the temporary file name variabel outside the check for the verbosity variable
Add closing verbose statements