Progress tracking

Added code to support tracking progress of syncing