Add didFinishDownloading functionality