Match center interpolation logic of previous code.