Wrote codebook