Added Register and GetQbs function