PH control