Adding progress dialog.