Acid base tuning