Made some changes to the temporary file class