Asynchronous code, synchronously