Is there a way to loop a program and collect data on all of trials that are part of the loop?