Get rid of debugSetMasterState