Serialization and deserialization of history works. wohoo