Made tree immutable