Fix integer overrun and print progress.