Added option for user to specify number of trials.