Add session saving and loading.