Implemented operation count, and better progressbar output.