Added xscope custom protocol functionality