Make sure resource name is unique on each loop run