Implemented logging for the download process