Codebook written