Added support for async method invocations.