Implemented global priority switch.