Yes, that will work. But for times when you have a 100 trials (or 1000!), that's a really nasty way to work with it. I will have to work something out to make it possible across separate trials.