Alkalinity control