Added ternary operator generation