Perhaps it would be better to move it to DownloadController?