Move everything but the URL call out of the async task