Can this line be moved next to `updateProgress()` instead?