Better logging and markDownloaded debugging