Adapted and reused existing serializer generators