First version working with editor and tree.