m_FirstBatchDone = true;
  public boolean batchFinished() throws Exception {    if (getInputFormat() == null) {      throw new Exception("No input instance format defined");    }    // Do the subsample, and clear the input instances.    addNoise (getInputFormat(), m_RandomSeed, m_Percent, m_AttIndex.getIndex(),               m_UseMissing);    for(int i=0; i<getInputFormat().numInstances(); i++) {      push ((Instance)getInputFormat().instance(i).copy());    }    m_NewBatch = true;    return (numPendingOutput() != 0);  }