Actually, there is a synchronous API. If it is unsafe to use Wait(), I can rewrite the sync calls.