Try adding a flag to Thread to indicate whether a Thread is a leader.