progress indicator, add progressIndicator as an optional parameter