Removed unnecessary calc_pH code.