Added setup for deserialization.