Added variable to control sending to server.(AI Case)