Add some debug code and starting to implement the icon downloader