Moving fetching code to the cloud