Neater implementation of TTF