Now using arrays for TMs