Codebook and variables