Simplified minimizing crossing logic.