Fix so that we can access publishProgress()