Made Codec enoding dynamic as opposed to static