Added parsing of Tree object for usage in import