Need to understand lock and persist