Reconstruction code