Added Quantization and Zero Length Codec