Added sloetree functions