Put back lost data, tidy up new management scripts.