Why dont we move this to `progress` function? Please update the name to `setProgressBar`as well.