Writing master slave