JK: Added proper progress bar updates for the sync.