Ported API calls over to asynchronous equivalent.

Synchronous calls were getting me nowhere.