Utils for binary operation.