Implements the persister to storage.