Finish part of the file transfer function