Researchers in Hungary are developing a method of finding better trained, and more effective working dogs by studying how the animals establish hierarchies within a group.