Client code, talks to server.