Move this to the (not yet existing) UpdateProgressDialog class.