Well sort of depends on how you want this to operate and why you're renaming them anyways. There are keys to disable this feature too if wanted.

Basically if it is a temporary thing then you might want to set a flag so that you don't run it again.