Added Pahimar's NBTHelper class