```
else {
    total_started = 0;
    agent->start = next;
}
```

The total_started = 0 will count starting at next since we won't rescan the bit between agent_state->position and next.