Added a selection for bad items. This needs to be evaluated before processing.