Modify progress bar code