Added support for in memory downloads.