Write new saving and loading methods