Update download functionality