Add narrow and widen to Codec