Add master and slave.