Improved progress bar, cleaned up download loop.