More robust session loading.