Added operands type checking.