Attempt to make it possible to switch between master and slave status