Adding to ternary