Implement upgrading data format.