Use synchronous API