This might make sense to move into a `persist` function.