Started writing serialization framework