Working data structure with proper flags