Added variables to the ternary.