Wrote NBTHelper, some cleanup.