Added optional progress bar - fixes #16