Add option to dump only leafs