Adding codebook.