Added some code to experiment with implementing dynamic progress dialogs.