Create master_slave