private String compute(String[] input) {
		try {
			Integer operand1 = Integer.parseInt(input[1]);
			Integer operand2 = Integer.parseInt(input[3]);

			if (!node.getOperators().contains(input[2]))
				return "Error: Operation not supported!";

			String result = "";

			switch (input[2]) {
			case "+":
				result = String.valueOf(operand1 + operand2);
				break;
			case "-":
				result = String.valueOf(operand1 - operand2);
				break;
			case "*":
				result = String.valueOf(operand1 * operand2);
				break;
			case "/":
				if (operand2 == 0) {
					return "Error: No division by zero!";
				}
				result = String.valueOf(Math.round((float) operand1 / operand2));
				break;
			default:
				result = "Error: Unsupported operation!";
				break;
			}

			logger.log(node.getFileDir(), node.getNumber(), operand1 + " " + input[2] + " " + operand2 + " ", result);
			node.getHistory().add(operand1 + " " + input[2] + " " + operand2 + " = " + result);

			return result;
		} catch (NumberFormatException e) {
			return "Error: Input can only contain valid integers!";
		}
	}