Added simple persistence framework.