Added a Progress Dialog and some toast messages for diagnostic purposes.