Refactored URL from String to URL class.
Combined 1st and bext fetches to 1 method.