Update master_slave