More work on flag attachment