Added support for more than one sentence in tree