Switching file downloading to async.