Improve download script.