Updated reconstruct script.