Add comments. Use ternary operator.