Changes to writing/loading.