Code specifically used for XBMC