Removed unnecessary variable check.
Improved download event.