FIxed adding new codes to codebook