Added error checking to downloadRequested