Added a facility to track upload/download progress.