Sends commands to server.