Configure adapter and serializer