Some changes UploadScript