Add codebook
Merge data