Only save on changes
Save on logout