Building the client