Generate masked expressions for ternary expressions
Add re-add ternary line in tunnel.d