Extracted modules for tree and command parser.