Rewrote the main benchmark functions to not need any hacks to monitor progress.