Work on model and cursor serialization