Added a function which tries to guess the best primary name for a peap