Rewritten NBT loading