Added ability to save progress on logout.