Refactored node flags