Updated to use fetch_url