Turbidostat settings

I’m having issues with Turbidostat when using it as part of a profile.

When Turbidostat starts running I notice it removes waste twice every time it adds media. Effectively it’s reducing the vail volume by double the Turbidostat increment every time it cycles. I don’t understand why Turbidostat would ever do that. As Turbidostat continues the UI thinks it has reached the max volume after enough cycles (which makes no sense since the UI seems recognizes it is removing more volume than it’s adding, based on the logs). In reality it has empty the vial (and the last few OD readings are all over the place, above and below target value). See logs for pumping

I call the Turbidostat automation in my profile like this:

dosing_automation:
actions:
- type: start
hours_elapsed: 0.056
options:
automation_name: turbidostat
target_od: 3
duration: .01
exchange_volume_ml: 15
- type: stop
hours_elapsed: 0.195

I’m not sure if this script is correct… I used this as a reference Turbidostat after time - #2 by CamDavidsonPilon
I couldn’t find any more formal instructions on how to write the code. As I understand it “exchange_volume_mL” is the total amount of media Turbidostat can add to the vail to achieve target OD.
NOTE: In this profile I’m not using Turbidostat to just maintain OD but to dilute the media to a specific OD from a pure, the important information being the volume of media needed to dilute to the OD