TEA pH control