Updates to codebook