Added so that number of iterations are shown when algorithms time out