Show progress.
Rewritten as function. Added interactive plot viewing.