Add file transfer function to forest and apply necessary changes.