Minor syntax change
Start basics of main TMIF loop