Add file-transfer function.