Make resource name dynamic inside loop.