Support for kbest trees