Improve simplification when an expression is entered.