Tree With State Management