Rewrote deserialization