API change for persistence