A Dialog Control Algorithm and Its Performance