Removed the case for logic functions because it was contradicting with every other function's ops which is Basic but not isinstance(expr,Expr)