Adding config to the serializer and deserializer.