Added function to prevent user from continuing to app while downloads are in progress.