Added a progress bar to the file transfer function.