Quantization engine