Simplify code to always use the cfg->uris array.