Changed Client Library to use REST Client API.