Sending commands to server.