Fixed bug where progress could be >100%, printing lots of # to stdout