Now download runs correctly until finish.Also renamed some variables