Pruning by type implemented.