optionalized progress bar display feature with -P switch.