Implemented "shift and translate" optimization"