Determining the master router