Changes to pH model