Show progress dialog if scanning takes more than two seconds.