Setting up the client