Add a simple pruning condition.