Added nametab function