More modifications to functions to use BASE_URL.