Loops added to create unique urls and responses