Serialization almost working.