Added ternary operator