Setting up the client structure