Updated primary master detection method