Prepared recursive tree data creation.