Just a few changes to the code.

Want to test it? Make it download http://download.thinkbroadband.com/10MB.zip
Capitals have to be exact.