anchor.diff:            return
          end if
   
  -       index_tally = tally_maps(i_map) % items(i_cell) % &
  +       index_tally = tally_maps(i_map) % items(i_item) % &
               elements(position(i_map)) % index_tally
  -       index_bin = tally_maps(i_map) % items(i_cell) % &
  +       index_bin = tally_maps(i_map) % items(i_item) % &
               elements(position(i_map)) % index_bin
   
          if (index_tally > i_tally) then
  
positive.code:     integer, intent(in) :: index_tally ! index in tallies array
      integer, intent(in) :: index_bin   ! index in bins array
  
      integer :: n
      type(TallyMapElement), allocatable :: temp(:)
  
      if (.not. allocated(item % elements)) then
  
negative.code: ! GET_NEXT_BIN determines the next scoring bin for a particular filter variable
  !===============================================================================
  
    function get_next_bin(i_map, i_item, i_tally) result(bin)
  
      integer, intent(in) :: i_map
      integer, intent(in) :: i_item
      integer, intent(in) :: i_tally
      integer             :: bin
  
  