Added a sleep in the async method.

This allows the async method to return immediately.