Changed into ternary operator.