Added joinTree