Limiting the number of times progress() gets called for larger files to 1000.)