Addind the possibility to change the dioc and to reset it.