Removed duplicated get_urls function