Added timeout parameter for async client