public boolean addLine (String line) {
        int noOfAtts = Structure.numAttributes();
        DenseInstance inst = new DenseInstance(noOfAtts);
        inst.setDataset(Structure);
        String attrs[] = line.split(",");
        for (int i = 0; i < Structure.numAttributes(); i++) {
            if (i == (attrs.length - 1)) {
                if (!inst.classIsMissing()) {
                    inst.setClassValue(attrs[i]);
                }
            } else if (Structure.attribute(i).isNumeric()) {
                inst.setValue(Structure.attribute(i), Double.parseDouble(attrs[i]));
            } else if (Structure.attribute(i).isNominal()) {
                inst.setValue(i, Double.parseDouble(attrs[i]));
            }
        }
        if (m_isClassMissing) {
            inst.setClassMissing();
        }
        InstQueue.add(inst);
        return ((line.length() > 1) && (Structure != null));
    }