Add progress support. Fixes #2.