Add saveAndPersist functions