Added support for un/protectBranch