BitSet getSubstructureSet(String smiles) throws ScriptException {
		PatternMatcher matcher = new PatternMatcher(viewer);
		try {
			return matcher.getSubstructureSet(smiles);
		}
		catch (InvalidSmilesException e) {
			evalError(e.getMessage());
		}
		return null;
	}