Multi tree support added.