Adding ProgressDialog and fixing bugs.