NBTHelper class and other stuff