Improve boolean expressions.