Added both sych and async call support.