Minor changes to stat and DataTree