Added the ability to perform iterated trials