Title: On designing algorithms for controlling pH