Refactor label assignment and improve selection
Fix conflicts