Change code sample, to be asynchronous.