Made tree nodes indexed.