Added master-master-slave structure