This is the right centering code.