Added more trace logging related to finding master.