Trying to modify insert to add the node treedepth value.