Modify codebook.