There should be a `setPercentCompleted` method that will automatically update the progress bar when called.