Removed unused varibles and added uploadprogress