Working client code.