Ternary setup

Ternary setup