Only save the prisoners if they were changed, add that flag.