Updated the sample client code