It is sad that we need a synchronous call here. But this is not our call, is it? I suppose the API is like that.