Added code for async example.