Added tree() and lstree() methods.