Added loading dialog.