Full conversion to use NBTUtil class