Changed the way files are downloaded