Added ternary pathtracker