Adding some parts of the bitwizardctl tool