New serializer implementation