Added progress dialog.