Added pruning for bit sets.