Making scriptTree interface use new-style classes.