Added subtrees, flag parsing and info line.