Simplifying some conditions.