Adding a group search to the Badge class