Add weird redundant shifting logic.