Added support for Treecollection