rete;
}

// Override by wrapping the original getUtterance
core.getUtterance = (function (origGetUtterance) {
  return function () {
    if (WOB_DATA_MODE == 'test') {
      return origGetUtterance();
    } else {
      return {
        'utterance': origGetUtterance(),
        'fields': core.currentFields,
      };
    }
  };
})(core.getUtterance);


// empty the UI at the start of the episode and set it up
// with the main and search templates.
var setupInbox = function(){
  $('#area').empty();
  var main 