Move logic for finding version and url into the same function so that there's no extra connection to the server.