Add tree generation.