Incremental progress calculation

To make the progress calculation much more effective
Merge pull request #110 from iNecas/incremental-progress

Incremental progress calculation