Serialization - work in progress.