Make master/slave work with peer class.