Add tree into script reference