Should use the `updateProgress` function