Added codebook and code