Add in tree functionality.