Work on the codebook