This script is my improvement to the old document downloader