Allow overriding of persist