Add queue pruning.