Modified: initial version of async agent client