Adding tree and hash