Changed Serial monitor after upload location and added prefrence check in upload function