Adds data persistence