Added change of ownership when adding tree nodes