Implemented a single-threaded solution that resolves and downloads to a file.