Changed the conditional out for ternary.