Added support for 2 trees