Better way of generating mtt_infile