add progress bar capability for long processes.