Add address management to tree program.