Updated "GetUrls" function.