Pruning method added.