That worked perfectly, once I added the else condition of appending the .prt I ran it several times and I don't seem to be getting any errors anymore.
The "other stuff" is important, but how would I go about checking for it? And honestly I would rather the user not have to worry about it, and...