Setup the client structure