Optimize condition.