Update DeleteIf to use the new queue() method