Adds quantization table and helper function