Threshold slightly implemented.
Added column to tables to show how many iterations have gone.