Simply URL-getting logic.