Added support for base-acid titration