TernaryFunction added