Added checking of queue of remembered IDs when flushing to remove those
that are from too many generations ago