Simplified flag check