Added basic prototypes for tree functionality.