Implement loading and saving.