Moved debugging
Moving common code into a class inherited by both roxyController and DownloadController