Reconstruct the codes