Correctly iterate through timetracks by using correct test