Change exact inference code to include global offsets.