Added Variable checking to XBMC code, Added Debugging variable "xbmc"