public Variable getVariableSafely(String name) {
		if (variables.containsKey(name)) {
			return variables.get(name);
		}
		if (parent != null) {
			return parent.getVariableSafely(name);
		}
		return null;
	}