Tree script