Added ability to run tests until standard deviation stabilizes.