Support variable naming for ns and ts reference fields