Beginnings of tmap->gmap stuff