Reconstruction script.