Cleaned and optimized NBT tag system.