Added ternary features.