Working quantize_feature